##Repository available at: http://www.opmw.org/sparql ##Retrieve P-Plan (basic dependency graph) from OPMW assertions in the repository. CONSTRUCT{ ?activity2 ?activity. } WHERE{ ?activity a . ?activity2 a . ?activity . ?activity2 . ?activity2 ?u1. ?u1 ?activity } ##Expected response: @prefix ns0: . @prefix ns1: . ns1:AQUAFLOW_NTM_METABOLISMCALCULATION ns0:isPrecededBy ns1:AQUAFLOW_NTM_NIGHTTIMEMODEL , ns1:AQUAFLOW_NTM_CREATEPARAMETERSFILE . ns1:AQUAFLOW_NTM_FILTERTIMESTAMPSANDDATA ns0:isPrecededBy ns1:AQUAFLOW_NTM_CONVERTTOSTANDARDFORMAT . ns1:AQUAFLOW_NTM_NIGHTTIMEMODEL ns0:isPrecededBy ns1:AQUAFLOW_NTM_CALCULATEHOURLYAVERAGES . ns1:AQUAFLOW_NTM_CREATEPARAMETERSFILE ns0:isPrecededBy ns1:AQUAFLOW_NTM_CALCULATEHOURLYAVERAGES . ns1:AQUAFLOW_NTM_CALCULATEHOURLYAVERAGES ns0:isPrecededBy ns1:AQUAFLOW_NTM_FILTERTIMESTAMPSANDDATA . ns1:AQUAFLOW_NTM_CREATEPLOTS ns0:isPrecededBy ns1:AQUAFLOW_NTM_METABOLISMCALCULATION . ##Retrieve all the PROV activities from the execution ACCOUNT1383027155436 (from Aquaflow NTM): SELECT DISTINCT ?activity FROM #Named graph for the Bundle WHERE { ?activity a } ##Expected response can be seen at: http://www.opmw.org/sparql?default-graph-uri=&query=SELECT+DISTINCT+%3Factivity+%0D%0AFROM+%3Chttp%3A%2F%2Fwww.opmw.org%2Fexport%2Fresource%2FWorkflowExecutionAccount%2FACCOUNT1383027155436%3E+%23Named+graph+for+the+Bundle%0D%0AWHERE+{%0D%0A+++%3Factivity+a+%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fprov%23Activity%3E%0D%0A}&format=text%2Fhtml&timeout=0&debug=on ##Similarly, we can retrieve all OPM Processes of that very Execution: SELECT DISTINCT ?activity WHERE { ?activity a . ?activity . } ##Expected response: ##See http://www.opmw.org/sparql?default-graph-uri=&query=SELECT+DISTINCT+%3Factivity+WHERE+{%0D%0A++%3Factivity+a+%3Chttp%3A%2F%2Fpurl.org%2Fnet%2Fopmv%2Fns%23Process%3E.%0D%0A++%3Factivity+%3Chttp%3A%2F%2Fopenprovenance.org%2Fmodel%2Fopmo%23account%3E+%3Chttp%3A%2F%2Fwww.opmw.org%2Fexport%2Fresource%2FWorkflowExecutionAccount%2FACCOUNT1383027155436%3E.+%0D%0A}&format=text%2Fhtml&timeout=0&debug=on